@Subhead@<:#480,9360> InsertCascadeMenuItem(1, "&Edit", "&Insert", 1, "&Special Characters..." , "{rmac}!charmap", "Insert a character from the Character Map into the current document.")
@Subhead@ call charmap()
@Subhead@<:#240,9360>else
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>if winver = 3
@Outline3@<:#240,9360><:f200,2Times New Roman,255,0,0>if Decide("This Windows 3.1 application may not be present; add the menu item anyway?", "Character Map") =0
@Outline3@<:#240,9360><:f200,2Times New Roman,255,0,0> exit function
@Outline3@<:#240,9360><:f200,2Times New Roman,255,0,0>endif
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>endif
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> StatusBarMsg("Installing a new item to the Edit / Insert menu")
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> 'pause(008)
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> DeleteMenuItem(1, "&Edit" "&Insert", "&Special Characters...")
@Subhead@<:#480,9360><:f200,2Times New Roman,255,0,0> InsertCascadeMenuItem(1, "&Edit", "&Insert", 1, "&Special Characters..." , "{rmac}!charmap", "Insert a character from the Character Map into the current document.")
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> StatusBarMsg("")
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>endif
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>end function<:f>
@Title@<:#284,9360>function charmap()
@Subhead@<:#240,9360>rmac=GetRunningMacroFile$()
@Subhead@result=IsOKToRun(paste)
@Subhead@result = 1
@Subhead@if result !=1
@Subhead@<:#240,9360> exit function
@Subhead@<:#240,9360>endif
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>ret = chr$(13)
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>hWnd= GetFocus()
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>clipboardA=ClipboardRead(1)
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>app = "Character Map"
@Subhead@<:f200,2Times New Roman,255,0,0><:f><:f200,2Times New Roman,255,0,0>if not appisrunning(app)
@Subhead@<:f200,2Times New Roman,255,0,0><:f><:f200,2Times New Roman,255,0,0> result = exec("charmap.exe", "")
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> if result <<= 32
@Outline3@<:#240,9360><:f200,2Times New Roman,255,0,0>winver=GetVersion()
@Outline3@<:#240,9360><:f200,2Times New Roman,255,0,0>if winver = 3
@Outline3@<:#240,9360><:f200,2Times New Roman,255,0,0> Message("This Windows 3.1 application could not be loaded.", "Character Map")
@Outline3@<:#240,9360><:f200,2Times New Roman,255,0,0> exit function
@Outline3@<:#240,9360><:f200,2Times New Roman,255,0,0>endif
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> Message("Couldn't start Character Map.", "Character Map")
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> exit function
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> endif
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>else
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> activateapp(app)
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> apprestore(app)
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>endif
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>while GetFocus() != hWnd
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> pause (001)
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>wend
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>if ClipboardRead(1) != ClipboardA
@Subhead@<:#240,9360><:><:f200,2Times New Roman,255,0,0> Paste()
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> FontRevert()
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>else
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> if decide("You didn't copy anything to the clipboard; Try again?")=1
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> RunLater("{rmac}!charmap", "00:00.001")
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0> endif
@Subhead@<:#240,9360><:f200,2Times New Roman,255,0,0>endif<:f>